package com.example.androidcomplete02.broadcast;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.androidcomplete02.R;

public class DetectFree extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch29_br_detectfree);
		findViewById(R.id.broadcast_wifi).setOnClickListener(
				new View.OnClickListener() {
					public void onClick(View v) {
						Intent intent = new Intent("FREEWIFI");
						intent.putExtra("BroadCast", "WiFi 가능지역");
						sendBroadcast(intent);
					}
				});
	}
}